//
//  OtherDuoBaoVC.m
//  夺宝吧
//
//  Created by xiaocai on 15/7/27.
//  Copyright (c) 2015年 FangYuan. All rights reserved.
//

#import "OtherDuoBaoVC.h"
#import "OtherDuobaoView.h"
@interface OtherDuoBaoVC ()
{
    OtherDuobaoView *_otherView;
}
@end

@implementation OtherDuoBaoVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = QBB_GRAY_COLOR;
    [self loadCustomNaviBar];
    //选项控件
    _otherView = [[[NSBundle mainBundle] loadNibNamed:@"OtherDuobaoView" owner:self options:nil] lastObject];
    _otherView.frame = CGRectMake(0, 64, WYMWITH, _otherView.frame.size.height);
    _otherView.uid = self.uid;
    [self.view addSubview:_otherView];
}
- (void)setUid:(NSString *)uid
{
    _uid = uid;
    _otherView.uid = self.uid;
}
//加载导航条
- (void)loadCustomNaviBar
{
    UIView *naviBar = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WYMWITH, 20+44)];
    naviBar.backgroundColor = QBB_RED_COLOR;
    //返回按钮
    PublicBackBtn *backBtn = [[PublicBackBtn alloc]initWithVC:self andBackType:pop Img:[UIImage imageNamed:@"icon_back_white_press"]];
    [naviBar addSubview:backBtn];
    //标题
    UILabel *titleLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 25)];
    titleLab.center = CGPointMake(WYMWITH/2, 42);
    titleLab.text = @"个人夺宝";
    titleLab.font = [UIFont systemFontOfSize:TITLE_SIZE];
    titleLab.textAlignment = NSTextAlignmentCenter;
    titleLab.textColor = [UIColor whiteColor];
   
    [naviBar addSubview:titleLab];
    [self.view addSubview:naviBar];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc{

    NSLog(@"OtherDuoBaoVC dealloc");
}


@end
